<?php

include_once '../../library/config.php';
include_once '../../model/articlelist.php';

$list = new ArticleList();
$list->request();

try {
//    if (!$list['myid']) {
//        throw new Exception("116");
//    }
    if (!$list->select("id,classify,title,summary,ico,url,shijian")->where("state=1")->get_page_desc("id")) {
        throw new Exception("117");
    }
} catch (Exception $ex) {
    $entity->rsscode($ex);
}

echo $list->toJson();
